package com.pactera.config;



public class OneDriveClient {

    /*private static final String clientId = "<YOUR_CLIENT_ID>";
    private static final String clientSecret = "<YOUR_CLIENT_SECRET>";
    private static final String tenantId = "<YOUR_TENANT_ID>";

    public static GraphServiceClient init() {
        // 1. 构建 Azure 认证凭据
        ClientSecretCredential credential = new ClientSecretCredentialBuilder()
                .clientId(clientId)
                .clientSecret(clientSecret)
                .tenantId(tenantId)
                .build();

        // 2. 创建认证提供者（注意类名变化）
        AzureIdentityAuthenticationProvider authProvider =
                new AzureIdentityAuthenticationProvider(credential);

        // 3. 构建 Graph 客户端
        return GraphServiceClient.builder()
                .authenticationProvider(authProvider)
                .buildClient();
    }*/
}
